package com.ruoyi.system.domain.vo.getTask;

import java.security.SecureRandom;
import java.util.Base64;

public class RandomBase64Generator {

    public static void main(String[] args) {
        SecureRandom random = new SecureRandom();
        byte[] bytes = new byte[128]; // 生成128字节的随机数据
        random.nextBytes(bytes);

        String encoded = Base64.getEncoder().encodeToString(bytes);
        System.out.println(encoded);
    }
}
